package com.xtm.exercise.controller;

import cn.hutool.core.util.StrUtil;
import com.xtm.common.context.LoginUserContextHolder;
import com.xtm.common.exception.BusinessException;
import com.xtm.common.model.PageResult;
import com.xtm.common.model.Result;
import com.xtm.common.model.SysUser;
import com.xtm.exercise.service.LogisticsOrderService;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.apache.poi.ss.formula.functions.T;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.RestController;

/***
 *@Author: 王磊
 *@CreateTime: 2025-04-22  17:28
 *@Description: TODO
 *@title: LogisticsOrderController
 */
@Slf4j
@RestController
@RequestMapping("/autoCreateLogisticsPlanRule")
public class LogisticsOrderController {

    @Autowired
    LogisticsOrderService logisticsOrderService;

    @ApiOperation("策略分页列表")
    @GetMapping("/list/page")
    public Result<T> getChargeStrategy() throws BusinessException {
        log.info("启动。。");
        return Result.ok("启动。。");
    }

    @ApiOperation("策略分页列表")
    @GetMapping("/addOperateHistory")
    public Result<T> addOperateHistory(){

        logisticsOrderService.addOperateHistory();

        return Result.ok();
    }

}
